import request from '@/utils/request'

export function hiddenTroublePageApi (params) {
  return request({
    url: '/api/hiddenDanger/page',
    method: 'POST',
    headers: {
      'Content-Type': 'application/json'
    },
    data: params
  })
}

export function addProblemApi (params) {
  return request({
    url: '/api/hiddenDanger/add',
    method: 'POST',
    headers: {
      'Content-Type': 'application/json'
    },
    data: params
  })
}

export function getToDoListApi (params) {
  return request({
    url: '/api/user/toDoOne',
    method: 'GET',
    params
  })
}

export function changeHiddenDangerApi (params) {
  return request({
    url: '/api/hiddenDanger/edit',
    method: 'POST',
    headers: {
      'Content-Type': 'application/json'
    },
    data: params
  })
}
export function toDoListApi (params) {
  return request({
    url: '/api/user/toDoList',
    method: 'POST',
    headers: {
      'Content-Type': 'application/json'
    },
    data: params
  })
}

 